package com.zmj.framework.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.zmj.framework.bean.Spend;
import com.zmj.framework.bean.SpendDetail;
import com.zmj.framework.dao.SpendDao;
import com.zmj.framework.service.SpendManager;
@Service
@Transactional
public class SpendManagerImpl implements SpendManager {
	@Autowired
	private SpendDao spendDao;
	public int saveSpend(Spend spend, List<SpendDetail> spendDetailList) throws Exception {
		return this.spendDao.saveSpend(spend, spendDetailList);
	}

	public List<Spend> getSpendListByHykh(String hykh) {
		return this.spendDao.getSpendListByHykh(hykh);
	}

	public List<SpendDetail> getSpendDetailListByXfbh(String xfbh) {
		return this.spendDao.getSpendDetailListByXfbh(xfbh);
	}

}
